package pl.ptemich.nov2k13;

import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class Game implements ApplicationListener {

  private SpriteBatch batch;
  
  private Texture texture;
  
  @Override
  public void create() {
    batch = new SpriteBatch();
    texture = new Texture(Gdx.files.internal("assets/bugW2hite.png"));
  }
  
  
  @Override
  public void render() {
    Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
    Gdx.gl.glClearColor(0.4f, 0.5f, 0.3f, 0.3f);
    batch.begin();
    batch.draw(texture, 10, 10);
    batch.end();
  }
  
  @Override
  public void pause() {
    // TODO Auto-generated method stub
    
  }
  
  @Override
  public void resume() {
    // TODO Auto-generated method stub
    
  }
  
  @Override
  public void resize(int arg0, int arg1) {
    // TODO Auto-generated method stub
    
  }
  
  @Override
  public void dispose() {
    // TODO Auto-generated method stub
    
  }


}
